package seleniumqa;


import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

import java.util.concurrent.TimeUnit;

public class Runner {

    public static void main (String args[]) {

        WebDriver driver = new FirefoxDriver();
        driver.get("http://rozetka.ua/");
        driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
        driver.findElement(By.xpath("//*[@id=\"head_banner_container\"]/div[4]/div[1]/div/div[3]/div[1]/div/ul/li[3]/a")).click();
        driver.findElement(By.xpath("//*[@id=\"head_banner_container\"]/div[3]/div/div/div[1]/div/div[4]/div/div/div[3]/div[1]/div[3]/div/div/a")).click();
        driver.findElement(By.xpath("//*[@id=\"block_with_goods\"]/div[1]/div[1]/div[1]/div[1]/div/div/div[4]/div[2]/div/form")).click();
        driver.quit();

    }
}
